﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Common
{
    [DataContract]
    public class Attachment : HsePSObject
    {
        public Attachment()
        {
            ID = Guid.NewGuid().ToString();
            CreationTime = DateTime.Now;
            ModificationTime = CreationTime;
        }

        [DataMember]
        public string ID { get; private set; }
        [DataMember]
        public DateTime ModificationTime { get; private set; }
        [DataMember]
        public DateTime CreationTime { get; private set; }
        [DataMember]
        public string FileName { get; set; }
        [DataMember]
        public string ContentType { get; set; }
        [DataMember]
        public string UploaderID { get; set; }
    }
}
